package com.comac.print.component.app.httpclient;
import com.alibaba.cola.dto.Response;
import com.comac.print.component.app.common.PrintCommon;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "print-component-app", path = "print-component-app")
@Validated
public interface PrintService {

    @ApiOperation(value = "打印")
    @PostMapping(value = "/print")
    public Response print(@RequestBody PrintCommon printCommon) throws Exception;

}
